import BaseModule from './app/base-module'

const AppEvent = {
  setNavigationBarConfig(command) {
    BaseModule.fireEventForAsync('setHeaderBarConfig', command)
  },
  popWebView() {
    BaseModule.fireEventForAsync('popWebView')
  },
  popToRoot() {
    BaseModule.fireEventForAsync('popToRoot')
  },
  ShowMask() {
    BaseModule.fireEventForAsync('showMask')
  },
  HideMask() {
    BaseModule.fireEventForAsync('hideMask')
  }
}

export default AppEvent;
